package model;
public class User {
	private int uid;        //账号
	private String name;
	private String password;
	private String sex;
	private int age;
	private String nationality;//国籍
	private String fromCountry;//从哪国回来
	private String id;//证件号

	
	public User() {}
	
	public User(int uid, String password, String name,String sex,int age,String nationality,String fromCountry,String id) {
		this.uid = uid;
		this.name = name;
		this.password = password;
		this.setSex(sex);
		this.setAge(age);
		this.setNationality(nationality);
		this.setFromCountry(fromCountry);
		this.id=id;
	
	}
	public User(int uid,String name,String password) {
		this(uid,name,password,"",0,"","","");
	}
	
	public int getUid() {return uid;}
	public void setUid(int uid) {this.uid = uid;}
	
	public String getName() {return name;}
	public void setName(String name) {this.name = name;}

	public String getPassword() {return password;}
	public void setPassword(String password) {this.password = password;}
	
	public String getId() {return id;}
	public void setId(String id) {this.id = id;}
	
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getNationality() {
		return nationality;
	}
	public void setNationality(String nationality) {
		this.nationality = nationality;
	}
	public String getFromCountry() {
		return fromCountry;
	}
	public void setFromCountry(String fromCountry) {
		this.fromCountry = fromCountry;
	}
	public String toString() {
		return "账号：" + id + ", 密码=" + password + ",   姓名:" + name + ",  年龄:"+age+",  \n "
				+ "性别:"+sex+", 国籍："+nationality+",  来源国："+fromCountry+",    证件号："+id+" ";
	}
	
}
